package com.ostrich.ostrichUserService.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Size;
import java.util.Date;

@Data
public class UpdateCusParam {

    @ApiModelProperty(value = "头像")
    private String image;

    @ApiModelProperty(value = "支付密码")
    @Size(min = 6)
    private String payPassword;


    @ApiModelProperty(value = "生日")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date birthday;

    @Size(min = 11)
    @Size(max = 11)
    private String mobile;
}
